﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace MesBSW.DAL.MesDB
{
    /// <summary>
    /// 流程表
    /// </summary>
    [Serializable]
    [Table("site_group")]
    public class SiteGroup
    {
        /// <summary>
        /// id，主键，自增长
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        [Column("id")]
        public int ID { get; set; }

        /// <summary>
        /// 站点组别代号
        /// </summary>
        [Column("group_code")]
        public string GroupCode { get; set; }

        /// <summary>
        /// 站点组别名称
        /// </summary>
        [Column("group_name")]
        public string GroupName { get; set; }

        /// <summary>
        /// 是否删除，0代表该站点组别正常使用，1代表已经删除不再使用
        /// </summary>
        [Column("is_del")]
        public int IsDel { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [Column("remark")]
        public string Remark { get; set; }

        /// <summary>
        /// 建档人
        /// </summary>
        [Column("create_user")]
        public string CreateUser { get; set; }


        /// <summary>
        /// 建档日期
        /// </summary>
        [Column("create_date")]
        public DateTime? CreateDate { get; set; }

        /// <summary>
        /// 部门ID
        /// </summary>
        [Column("dept_id")]
        public int deptId { get; set; }
    }
}
